package com.mwcz.hot.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.mwcz.hot.front.request.UserCollectAllRequest;
import com.mwcz.hot.front.request.UserCollectRequest;
import com.mwcz.hot.store.model.StoreProduct;
import com.mwcz.hot.store.model.StoreProductRelation;
import com.mwcz.hot.store.request.StoreProductRelationSearchRequest;

import java.util.List;

/**
 * StoreProductRelationService 接口
 *
 * @author Mr.Bai
 * @since 2021-06-18
 */
public interface StoreProductRelationService extends IService<StoreProductRelation> {

    List<StoreProduct> getList(StoreProductRelationSearchRequest request, PageParamRequest pageParamRequest);

    List<StoreProductRelation> getList(Integer productId, String type);

    boolean delete(UserCollectRequest request);

    boolean all(UserCollectAllRequest request);

    List<StoreProductRelation> getLikeOrCollectByUser(Integer userId, Integer productId, boolean isLike);
}
